/*
 * Copyright (c) 2016. For Intelligent Group.
 */
package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.ToleranceItem;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by QiangChen on 2016/8/23.
 */
public interface ToleranceItemDao extends PagingAndSortingRepository<ToleranceItem,Long>, JpaSpecificationExecutor<ToleranceItem> {

    ToleranceItem findById(Long id);

    ToleranceItem findByCode(String code);
}
